package com.ruoyi.carShopService.service.impl;

import com.ruoyi.carShopService.domain.CarOrders1;
import com.ruoyi.carShopService.domain.WithDrawal;
import com.ruoyi.carShopService.mapper.WithDrawalMapper;
import com.ruoyi.carShopService.service.WithDrawalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service
public class WithDrawalServiceImpl implements WithDrawalService {
   @Autowired
    private WithDrawalMapper withDrawalMapper;
    @Override
    public WithDrawal sreachById(Integer wdmerchantId) {
        return withDrawalMapper.sreachById(wdmerchantId);
    }

    @Override
    public BigDecimal sreachleijishouruById(Integer wdmerchantId) {
        return withDrawalMapper.sreachleijishouruById(wdmerchantId);
    }

    @Override
    public Double sreachsuntixianById(Integer wdmerchantId) {
        return withDrawalMapper.sreachsuntixianById(wdmerchantId);
    }

    @Override
    public List<CarOrders1> sreachList1ById(Integer wdmerchantId) {
        return withDrawalMapper.sreachList1ById(wdmerchantId);
    }

    @Override
    public List<WithDrawal> sreachList2ById(Integer wdmerchantId) {
        return withDrawalMapper.sreachList2ById(wdmerchantId);
    }

    @Override
    public Integer addnewjilu(WithDrawal withDrawal) {
        return withDrawalMapper.addnewjilu(withDrawal);
    }
}
